package com.woniu.microuserserver.service;

import com.woniu.microcommonsserver.entity.OrgInfoEntity;
import com.woniu.microuserserver.bean.DictBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrgService {

    //添加部门表与项目表的多对多关系
    public int addOrgPro_id(int oid,int pid);
    //添加一个部门并返回ID
    public int addOrg(OrgInfoEntity orgInfoEntity);
    //根据id查询组织详情
    public OrgInfoEntity searchbyid(int id);
    //查询所有部门的id,name
    public List<OrgInfoEntity> searchAllOrg();
    //添加字典
    public int addDict(DictBean dictBean);
    //查询字典
    public List<DictBean> sd();
    public int delDict(int id);
}
